Fixed issue with the close button sometimes causing errors because of the animations.
(Expect a huge update in a few days ;))