exit_properly now cleans hmap and chunks