Reload plugin during app time


So I’m using a plugin to create a bluetooth peripheral device. If I repeat a certain pattern of actions, the plugin bugs and it will only work if I restart the app. Is there any way that I can reload the plugin or reset the state during app time ?

Thanks in advance!