listen to process errors