Remember paused state throughout application restarts

Fixes #823