Set tempfile to None after close so that a new 'disk' file is created if the user needs to re-measure a source.  resolves #287