I feel you on the cleanup side--there was another interesting docker app on HN today that you may want to look at if you're running a large DB in your container: https://github.com/muthu-r/horcrux.
Our Container class is built so that if you use the `with` statement, container termination is handled automatically even if there's a program fault.