created a go routine for the client handling.