When a container is stopped with 'docker stop', SIGTERM is sent to the init process. Unfortunately neither bash nor runit-init handle that correctly, so we write our own init system in Python that also waits for all services to shutdown.