handling when capture is failed