Fixed #167

Added two's complement masking for the close frame's reason code.