Now the shutdown procedure is incorrect. The loop used after stopping, the http server does not stop hsndling requests and it serms possible to awoid use of sleep.
Use call later for async main.
Use loop forever instead until run.
In stop signal handler:
-Unset servers in device on stopping.
-stop loop
-Call sync stop functions of servers.
Now the shutdown procedure is incorrect. The loop used after stopping, the http server does not stop hsndling requests and it serms possible to awoid use of sleep.