Fixes game not closing bug

Author: lhunker