Вынесена модель Message
Logger module
Moved connection terminate function
Extract connection initialize methods
Extract process message method