refactor: cleaned up middleware

- static server now a feature (on/off)
fix: wait until everything closes before cb!

- stop koa from listening FIRST to let primus & level exit clean