Server client handling, better logging