Close the scanner to free access to the function file