Prepend outgoing Close frames with a status code.

Required according to RFC6455, 5.5.1.