It's unlikely that you want to rescue `Exception` here. You probably want `StandardError`, as the former rescues exciting exceptions like `SyntaxError` and `SignalException`. This can be simplified to `rescue => err`.