Ignore socket disconnection error if occurs during connection.