Disable entry when disconnected.
Resolve #25, #28, #30, #31