Should be probably replaced with `bsClose(bsIn); bsClose(bsWr);`