better handling of parse error

Signed-off-by: Bjorn Westergard <bwestergard@Hueco.internal.ngpvan.net>
Merge pull request #2 from NGPVAN/parseGrace

better handling of parse error