db close and process exit