Returning False from a callback function to scan.foreach() will abort the scan.
v1.0.27