changings in close method to properly handle reciever pdu