leveldb: Close opts on return