update webserver_status before sleep to avoid unconsistency when SIGINT is sent during sleep