* fixed shutdown behaviour