Hack to make sure attach output is complete

For whatever reason (to be discovered later), this change causes Attach output to be more reliable which is important for logging of errors that happen inside container execution.