turn off foreground after the pwd