Closing event after given time.