fix quitting if some modules are slow to quit
fix warning
throw exception on failed object consistency checks

this allows for proper termination of mpi subprocess and avoids killing the
whole job