fix pbs job dependencies
small fixes to server signal handling and shutdown logic