dont just exit(0) upon successful completion of waiting for an ipreallocate to finish.