Is it really correct to catch general `Exception` here?