Added exception handling mono setting profileroot

Added exception handling for running on mono.

A simple try catch could not work as you can't catch a missing method exception as it occurs at the JIT level however you can move the method calls out to a new method and then catch the call to the new method.

Hope this helps!