Clear up js file.
Close file ref only if file is not nil. (Get CV process)