Sigwait is used to catch signals