Wrapper to safely torify applications