put ./core back piracast.py and kill core before program end