There are two ASCOM commands to stop an exposure.
AbortExposure() stops the exposure and discards any data.
StopExposure() stops the exposure and makes the data available for download.
I'm not sure how many cameras implement both, nor am I convinced that collecting partial exposures is a good idea. Much easier to use shorter exposures so there's less to discard.
Chris R