Converted the foreground and background forest exits to strict mode.