fixed pending notification after crash

fixes #3