fix dump, and system closing