Use namespaced exceptions instead of raising Exception in socket_client.rb