Crash when closing the window, probably in the exact moment when the animnation for hiding controls starts.