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