add more error handling to Rakefile package task