Fixed reconnect issue. If stop was called, connect would subsequently fail