Unlock database after error when pruning.

Resolves #34.
Set version 1.1.2