line 8: fg: no job control
It's kinda difficult to tell what exactly this (cleanup) script was trying to do, but it tried to resume some background job which failed.
For further reference try the manual page:
Code:
fg [jobspec]
Resume jobspec in the foreground, and make it the current job.
If jobspec is not present, the shell's notion of the current job
is used. The return value is that of the command placed into
the foreground, or failure if run when job control is disabled
or, when run with job control enabled, if jobspec does not spec‐
ify a valid job or jobspec specifies a job that was started
without job control.