Improve engine's cleanup (#7813)
Fix #7812: This PR makes DeepSpeedEngine cleanup safe for partial
initialization.
This prevents destructor-time tracebacks by guarding access to
unitialized attributes of DeepSpeed engine.
Signed-off-by: Masahiro Tanaka <mtanaka@anyscale.com>