Fixing serial listener initialization - running flag should be set before thread is started.