better timout handling when shutting down webserver
corrected working directory for serving files