Fix #362 - Added defensive try/catch around System.Diagnostics.Process.MainModule call.