Dismiss loading indicator even when error happens