Check with case-insensitive for socket closed message