warn user before terminating instances

[#42401199]