[hotfix] Fix fail when try to close client connected with unsupported protocol name
[fix] trailing spaces