Possibly fix deadlocks.