Fix crash on start after improper shutdown (fixes #16).