added import exception handling for psutil