Fixed not reconnecting after connection closed