fix autokill
extract Connection class from Services (was: Server) class