Addede better Error detection to console thread