Fixes #16 - Make HttpExchange and WebSocket's close method idempotent