I noticed that MainLoop() seems to catch errors before I do. For example if I execute a messed up DBI call or maybe call a object method that doesn't exist...
Does this make sense? Is there a way I can catch them first? (I need to handle the error gracefully ;-)