Add try/catch block to prevent chrome from crashing - fixes #57