Added shutting down of derby database.