fix: bugs in shutdown and add stop
#30
+34
−6
Closed
stop
#30