Clear interval before setting it to undefined