Stacks sometimes crashes when Quitting