catch scavenger mysql exception