fixed deadlock issue when uninitializing falcon