disable pil import
log error message when pil cannot be loaded
Shutdown session2 after metadatatest
Merge pull request #574 from NielsZeilemaker/fix_metatest

Shutdown session2 after metadatatest
Merge pull request #572 from corpaul/devel

check for pil import