Resolved bug #0000001

Application would sometimes fail to break out of game loop when closing.
Fixed by adding break statement to be called directly by quit action.