After working for a couple of weeks with node.js, I found that there is a difference between node.js server errors and regular server side languages like PHP.
You can use the uncaughtException event on the process object to do what you want, but like others have said, domains and catching/handling errors at the correct level is recommended.