I think the reason this is happening is because `Exception` is being rescued here, which is way too aggressive. If this is changed to `StandardError` does the same problem still occur?