Aligns buffer final - dedicated / release connections

Hi Christian,

Here the final PR including your change about dedicated connection. I added a commit to close connections after closing recording stream. Because they still opened !