handling case of capture fail