Make sure we catch exceptions during module import