implement this later!) the profile is immediately no longer be advertised in the greeting BUT it is actually removed only after the last channel using it has been closed.
again, referencing the channel object as done below is a little dangerous...
log this once we have a logging subsystem
think a little about the performance implications of the below - we may think about either doubly linking the list or having the previous element at hand (e.g. in the linked list object...).
check & act on return value!!!! (close session? most probably...)
think if we need to shut down anything else inside the BEEP session.