It turns out to be difficult to implement the self-closing variant, so I will go with Sidnei's proposal here.
It turns out to be difficult to implement the self-closing variant, so I will go with Sidnei's proposal here.