Detach the program when invoked from the shell