couldn't comment on the issue (too old!? github bugs), so here's a patch just in case
small patch for #109 , with cleanup of BatIO.input enabled by default
I'm guessing this should have been included in batteries 2.0. As this is backwards incompatible, it'll have to wait until 3.0.
Couldn't it be considered as a bugfix? Discussion in #109 seems to consider this behavior as wrong, and people relying on cleanup=false definitely should provide ~cleanup:false when they call the function.
Merged in master, should be in 3.0.