Protect patch applications with an exit status check.