Handle sigchlds correctly