ExifTool not terminating when close() is called

When close() is called ExifTool process does not terminate.
Add in fix as shown by ankutsa (http://u88.n24.queensu.ca/exiftool/forum/index.php/topic,5381.msg26695.html#msg26695)