Fixes bug where alarm was not cancelled even though action completed successfully