Merge pull request #998 from andytaylor/master

fix typo
specj optimization. Dealing better with interruptions on the consumer