Bug 888373: Simple API for detecting startup/shutdown crashes;r=yoric,gps