allow users of scan_posts to override quit

Signed-off-by: Chris Warrick <kwpolska@gmail.com>