explicitly catch marshal errors rather than genertic exception #281