fix exit code when its invoked as node
finalise execution
fix finalisation: the resulting binary can now work as nodejs