Just added debug output to the reconnect and close methods