Added error checking for the exceptions that may be thrown
Added error checking for the exceptions that may be thrown

plasma-umass/doppio,bpowers/doppio,bpowers/doppio,plasma-umass/doppio,plasma-umass/doppio,bpowers/doppio