Flush message queue on ENVIRONMENT_SET_MESSAGE.