Nothing to do with Dog's question whatsoever and the following observation is meant to be nothing other than an amusing aside, but ...
... 'on the job' in Britain is a euphemism for having penetrative sex.
So, I couldn't help but smile when I read ...
he gets caught masturbating on the job
That's a fairly impressive act to attempt!