Monitor filechanges and restart long-running processes on change or exception