Catch ImportError on post_hook