Fix container unloading.

fixes #376.