Any program that supports plugins runs the risk that the plugin may hang and, in the process, hang the master program (in this case Resolve). If there's no facility to debug this such hangs can be very difficult to find.
The usual answer is to have a "deadman timer" that detects that a plugin has been running "too long" and warns the user, giving them the option to kill the plugin or let it run a while longer.
Given these reports:
Selecting timeline icons in media pool: causes freeze
viewtopic.php?f=21&t=168421Resolve gets stuck at program manager for 3-4 minutes
viewtopic.php?f=21&t=143588it looks like Resolve doesn't currently have such a facility - either for plugins or itself. So here's a request to add one.