Fix hanging message sender in monitoring (was causing a hang on termination).