Loading dialog better clearing of timeout