Catch exception on pheanstalk commands