Added unfreezing on disconnect. Closes #22.