make dao closeable