Stop c2s PID on websocket 'close' event