This is needed for bindings to languages which perform implicit and lazy
object cleanups. The explicit close methods allow to release resources
when they are no longer required, permitting deterministic reuse. One
example is node-red-node-intel-gpio which will use the new calls on node
closing.
Fixes#1044.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>