No, sd needs to be closed by whoever opened the socket. This has to be decided on a case by case basis.