Fixed unit test for pbsd_main.

Accomodated acct_close() stub signature in pbsd_main unit test
TRQ-2410: qstat continue parsing data after: bad job id; bad queue; bad server

- additional changes for TRQ-2304:"qstat returns 0 even though there has been an error"
- qstat returns last error code instead of immediately returns after first error
TRQ-2410: returns the first one err code
Merge pull request #245 from DSRCompany/trq-2410_qstat_bad_jobid

TRQ-2410: qstat bad jobid
Merge pull request #244 from DSRCompany/unit_test_pbsd_main_fix

Fixed unit test for pbsd_main.
TRQ-2785: If a job is preempted, its error and output files are not returned.

Conflicts:

	src/server/pbsd_init.c
	src/server/svr_movejob.c

Conflicts:

	src/include/qmgr_svr_public.h
TRQ-2785: If a job is preempted, its error and output files are not returned.

Conflicts:

	src/server/pbsd_init.c
	src/server/svr_movejob.c

Conflicts:

	src/include/qmgr_svr_public.h
Fix coverity issues: CID 1231070,1231071,and 1231072.