Fixes the white screen of death problem.

This occurs when the app starts up after previously being terminated. Also thow an exception if app enters with anything but a `kind` = launch. Lot's more work on supporting other kinds to come.