Prevent hard to track results when container.shutdown fails, by invoking context.complete even if an error occurs.