add exception handling to rakefile;