Make 'fail' better behaved for pattern match failure.