Extract logs from the container before removing it

Not exactly a solution to #8, but a good step towards it.