checkState() must be called in commit's wait loop to avoid hangs caused by Writer threads death
Merge pull request #78 from bonifaido/master

AsyncWriteEngine.commit() hangs when writerThread dies