close and receive