Closes window if datetime.now() exceeds timestamp