Keep Pdbgf only in case of an error