File Lock Exception #28

Added Shutdown Hook for file based and in-memory databases.

Unfortunately the JDBC driver has no livecycle management so I had to tie it to the JVM shutdown hook.