Re-order try-except-finally statements.