Proper return value on connection close