Fixed bug, dll was reloaded when it was terminated