Prevent disconnect to make ripplein/out stuck.