add logging to investigate crashes after unsuccessful capture to file