slight refactor of rWSP - moved handleDisconnect to separate method