log exceptions thrown in select app and file