Ion-loading element not hidden after dismissed it

Some times app has not worked becoz of ion-loading element not hidden. So the app is freezed.
Any one has the solution for this ?

Thanks in advance !

Share a sample code to understand your issue.

getting it randomly , just showed the loader and dismiss the loader as in document