exec: Fix error handling in begin_new_exec()