Only catch security exception in DoReadRegistry