Fixed #71

Fixed issue #71 by wrapping the `del ...` code in a try-except block, so programs don't crash anymore if the variables that have to be deleted are not set.