Add psutil.error import to solve OSX problem.

Closes #2936
Merge remote-tracking branch 'ivan-github/bug/2936_fix-psutil-error-import' into develop