Better loopback shutdown behaviour for complex integration tests