Adds a try-catch to handle parse errors in client.

We don't need this here anymore after #323