Closes the database connection and releases file locks.
Idempotent — calling close on an already-closed handle is a no-op.
Future<void> close();