db: close event is always emitted