fix stopping from signals