Fixing Rakefile exception cases