disconnect exception fix