On premature shutdown, cancel instead of complete pending events