catch the exception in main movie loop