Prevent handling of clicks outside our own window
Added resource clean up at end of game loop