wrap spawning of compass in try catch