Add exceptional handling to physiclib