Added unregister method to client