handle exceptions in fastdraw
fastdraw: merge dirty rects before returning