Excluding calls to stop function from trace