base:loopexit(): Support for specifying the timeout before exit