Unlock buffer and catch early termination.

https://github.com/WebSharks/quick-cache/issues/176