fix fault in logic of Pool
fix #236 faults in synchronized blocks or exceptions causing faults