IPC: wrap JSON parsing inside try / catch block

Resolves #302