Fix detaching from attached container Upstream-commit: 27226d47c17588c867f2c533b87977955f2ca66e Component: engine