Unable to stop bundle

  • Platform information:
    • Hardware: Raspi 3B
    • OS: openhabian
    • Java Runtime Environment: which java platform is used and what version
    • openHAB version: 2.4.0.1 stable

Every now and then I need to restart bindings.
I did not ever have this issue, but with the dashbutton binding I get in Karaf. Sometimes one or two Dash buttons go offline, so the restart helps (sometimes multiple restarts required)

openhab> bundle:list | grep Dash
185 x Active   x  80 x 2.4.0                  x openHAB Dashboard UI
218 x Stopping x  80 x 2.4.0                  x AmazonDashButton Binding
openhab> bundle:restart bundle:stop 218
Error executing command: Error restarting bundles:
        Unable to stop bundle 218: Unable to acquire the state change lock for the module: osgi.identity; type="osgi.bundle"; version:Version="2.4.0"; osgi.identity="org.openhab.binding.amazondashbutton"; singleton:="true" [id=218] STOPPED [STOPPED]
        Unable to start bundle 218: Unable to acquire the state change lock for the module: osgi.identity; type="osgi.bundle"; version:Version="2.4.0"; osgi.identity="org.openhab.binding.amazondashbutton"; singleton:="true" [id=218] STARTED [STOPPED]

Does anyone have an idea what might be wrong?

Next try is to do a complete restart, but solving it “smarter” would be preferred.
Thanks in advance.

No one with this issue?
Even after a restart of OH the problem is still there.