add dirty db close function which closes file handles.
Merge pull request #43 from younggi/master

add dirty db close function which closes file handles.