Started script to check time on close