move shutdown event higher, also don't call process.exit anymore for shutdown
move shutdown event higher, also don't call process.exit anymore for shutdown

SandJS/sand,pocketly/sand,pocketly/sand,SandJS/sand