During browser closing, plugin blocks browser's main thread, posts WINDOW_CLOSING event to Java side of embedded frame, then opens additional window message pump and waits Java side to clean up the resources.
However, the additional message pump can cause browser window to close before WINDOW_CLOSING event gets processed, then the event never gets signaled, so causes browser to hang.
However, the additional message pump can cause browser window to close before WINDOW_CLOSING event gets processed, then the event never gets signaled, so causes browser to hang.