You can include your own routines into the reorganization process to handle reorganization failure. Refer to Including Your Routines in the Reorganization Process.