auto reconnect when disconnected

This is very useful when my computer wake up from sleep state.