Try to more gracefully handle user-interrupted recording sessions.

Resolves #663.