browser: close server when document is loaded

no more `CTRL + C`! closes #1