improve error reporting for AppMonitor