Catch exception during connection to the server

Bug in pecl gearman extension:

https://bugs.php.net/bug.php?id=63041
Catch exception during connection to the server

Bug in pecl gearman extension:

https://bugs.php.net/bug.php?id=63041
Worker interface
Merge branch 'patch-2'
Merge remote-tracking branch 'origin/patch-1'