Removing reference of subject from socket and server