Cleanup library if daemon initialization fails