Fix exception handling about client abort.