Adding logger into config struct
Handle consuming messages and connection closing