fixed "Library crashes on network shut down"