Improve fast-fail for web sockets