Header import fix
Auto indentation and fixed segmentation fault when cllient disconnects