Make the try/catch more specific when setting properties