Remove dynamics from exception