Handle exceptions in unix socket connection setup.