Added logging functionality to web server and added shutdown function for graceful shutdown.