Fixed ignoring of SIGINT on child processes. Fixed wait for background processes