def _write_status_to_log(self, return_code, stream=sys.stdout):
        """Write the status of this job to a log stream.
        This is used to check on job completion."""
        stream.write("Timestamp: %i\n" % get_timestamp())
        if return_code == 0:
            stream.write("%s\n" % self._interface.string_successful)
        else:
            stream.write("%s %i\n" %
                         (self._interface.string_exited, return_code))
Write the status of this job to a log stream.
        This is used to check on job completion.