unset loadingContainer once it's removed from the DOM