MP1-4155: added exception handler to ensure that logs will be flushed
MP1-4155: fixed flushing of log messages to log file
Merge remote-tracking branch 'remotes/upstream/MP1-4155-FEAT-Merge_of_IPTV_filter_and_MediaPortal_Url_Source_Splitter' into 1.5.0Fork