PBS Professional provides the ability to script some actions
immediately before the job starts and immediately after it ends (even
if it is removed). The epilogue is a good place to put any best effort
cleanup and stray process functionality that might be necessary to
clean up after a job. For instance, one could include functionality
to clean up the working/scratch area for a job if is deleted before
its completion. ANSYS Fluent provides a way to get rid of job-related
processes in the form of a shell script in the work directory (cleanup-fluent-host-pid). It could
be useful to have the epilogue call this script to ensure all errant
processes are cleaned up after a job completes.