cleanly close socket on pm2 kill
cleanly send ready message