Running long-lived processes in the background