Added socket disconnect,reconnect and error messages