Return to simple C project instead of eclipse project
Better socket managment
Avoid NullPointerException if connection failed