Refactor to remove empty catch exception.