close applications on a timer