added PotimErrorHandler to run_vasp