fixed shutdown and timeout handling and added container output propagation