Stop counter once alarm goes off