Fixed the command prompt interaction while main thread runs