Added more events and disconnect method to client