It appears RL crashes sometimes, not often but it happens. I have no idea yet why this is so I wrapped the main loop i a try/catch block and write the error if it crashes to the log. To be continued.