Corrected terminate message format
Session become stable and simple
Stream isn't needed anymore. Some refactoring done.