Removed signal trapping nonsense from main.py.