Catch any parsing errors - fixes #6