Expose stop() function in public API