implement robust close of connection that allows to read received but outstanding data while freeing the uip_conn structure early