added conditional exit + pending requests file