Require error handling for close