Refactor handle_closing_signed to wrapper error handling function