add more error handling to Rakefile package task
Merge pull request #487 from detiber/rakefileErrorHandling

add more error handling to Rakefile package task