Move capture exceptions to Failure class.