When lwip_close free the socket resource (netconn etc), any work related to these resource (netconn etc) must be aborted.