daemon mode added, problem with removing monitor.