Timer that closes the page after set time.