Delete log file
Fix socket hangup