-Fix error catching in server issue on close request