Fixes: #9694 Issue link: https://github.com/spring-projects/spring-integration/issues/9694 - Add null check before closing `socketChannel` in catch block - Prevents potential `NullPointerException` during error handling **Auto-cherry-pick to `6.3.x`**