Add psutil.error import to solve OSX problem.

Closes #2936