adding try/catch

cc @visionmedia @gjohnson