create cleaning thread, add commad line socket requests