Catch process errors