Better error handling for exceptions during exploitation #5000