Minor changes to nodejs driver. Somehow the compilation under OSX is not using the exceptions as they work under windows and linux.