Time now works and closes activity when time is out