How to global exception handling in Jira plugin

Hello, I am new and developing a Jira plugin. I have some questions about how Jira and my plugin handle exceptions:

  1. Is there a way to handle exceptions generated by my plugin? (Similar to the ControllerAdvice annotation in Spring)
  2. What will happen if a RuntimeException occurs in my module (not handled by my plugin)? Will a Jira exception handler handle it? Will the plugin stop working? Is there a need to restart the plugin?

I have searched through the provided guidelines and discussions in the Atlassian developer community but haven’t found a satisfactory answer yet. Thanks for all the answers.