detect if done() called multiple times
Merge pull request #11 from AlexeyKhristov/master

detect if done() called multiple times