waiting for statuses before exiting