When used with -fg we expect the startup script to remain running until the session is over. This will not happen if the session command is put in the background using &.