Fix stray protocol packet errors to be catchable

fixes #867