This makes sure we don't loose any logs that might have been buffered and haven't been written to the docker logs.