Block only SIGINT, SIGQUIT and SIGTERM in background tasks