Refactor handle_accept_channel to wrapper error handling function