Use check_output() and log.exception()

This should help us figure out why our checkouts keep getting deleted.