Add configurable grace period before locking device due to disconnect