#8: Remove the Derby locks once the database is shutdown

Implemented.
Merge remote-tracking branch 'origin/master'