Adding --no-daemon option to the MonitorAgent for being able to run the agent in foreground