adding a Shutdown Hook, see if this works