Fix signal handling to NOT exit every time.