Fix pause/unpause bug

When you press stop it should clear the paused flag.

Fixes #440.