#if some Console.WriteLines for debugging. TODO: do something usefull on the exception handlers instead of halting!