Clean crontab
Close socket to avoid socket error message.