Add clean_exit for Receive.py