Fixes #2 - Key stream completes without resume