Capturing errors while offline