close webserver if crashes