core: always dump environment at termination

this had proven useful for problem determination.

Change-Id: I5eec90ced28ecbcbb968881ac723e2db60d38298
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>