WIP: Handle exceptions returned by pavlov in frontend