Fix end()
not called when app is started manually
#651
+19
−1
end()
not called when app is started manually
#651