fix webserver stop method