Clearing the interval after execution has been finished