browser: close server when document is loaded

no more `CTRL + C`! closes #1

btw, it kills the server when every things loaded, not when the tests are done. tests shouldn't require the server to work.

actually, might want to make this an option. people might want to be able to reload the page.