Catching socket connect errors to protect owner process