add clean_then() function
Use Celery for communicating with the socket and send the commands