Stopping timer after device disconnection