fix some bad_exc_access issues caused by CFBridgingRelease

I got a lot of `bad_exc_access` issues caused by CFBridgingRelease. This PR fixes those.