Removed unneeded log message
Clear the monitor field after stopping to avoid following builds publishing monitoring logs from a previous unrelated build.
Log exceptions to the agent log file when starting or stopping the monitor.