Add wait for handling SIGBREAK