Added blocking_wait as exit callback