Let's try using python's exception handling to clean up on
error.