Added some debug messages before connecting to broker