Quick fix for timeouts that fired on possibly already removed elements. But animations will need to be refactored at some point