Propper web server, added handling on response finish