added some exception handling to simplemonitor