fixed deletion of websockets