Added close in recv and sender