MSG_CLOSE fix