Can `returnContainer` fail and cause this not to be run?