Trailing whitespace removed.
Reset acceptor before creating a new one.

Fixes gh-1