added potim error handler (not yet a default for run_vasp)