Window closing fix, download protocol added, client-side server & handler implemented