add exit command to close node script
fix coding style
fix coding style