implementation of nodejs domain for uncaught exception

bind method to subscribe a block of code to an event of error and listens for it. yet to add dispose method