handling RFC 6455 close frame