Fixed release build
Fixed thread synchronization
Simplified handling of plugin unload event