Allow to finish all deferred functions on os.Exit()
Allow to finish all deferred functions on os.Exit()

os.Exit() call do not run deferred functions.
This leads to incorrect cleanup of resources and files in certain cases.

Signed-off-by: Denis Pynkin <3fbf95ee68899518ee8799d35f88c8f7982aa936@collabora.com>

d4s/debos,go-debos/debos