add DeadlockDetectedException to fix #145