Add the possibility to close a share