Various fixes
Fixed shell prompt exit status