flush and catch error