Fixed #15. Use domain library to catch crashes.
Fixed #18, #17. Statique objects are event emitters. Emit error event