Mono does not like the SetConsoleCtrlHandler method that terraria uses for its server. This modification will remove the call to this method, allowing mono to continue. Alternatively we could have used Program.LaunchGame, but we would then have to implement the assembly resolving (at least while terraria still contains embedded assemblies)