Tests: rework stopping to make "open socket left" alerts visible.
Tests: rework stopping to make "open socket left" alerts visible.

Use SIGQUIT to stop nginx to make sure relevant checks are executed.  Use
separate functions to stop nginx and daemons to make it possible to stop
nginx before daemons.

catap/nginx-tests