Remove players on disconnect and error handling

Sockets were sometimes undefined