disable input when in disconnection.