I don't know if there is an API function for reading stops. But you can switch off partial closes if this is worrying you.