Crash has been fixed in webserver.c. Delayed mutex destruction has been removed.