Closing previously connected initiators implemented

Add documentation to this function. what it does, what is it for.