You need to `.catch()` the potential rejection of `addAlarmTimeout()` but doing the same as in the `then` so extract the `then` callback and use in both places: `then` and `catch`.