Adding config file

+ treating connection close from client