Remove obsolete examples
Remove obsolete lines and enable error catching