Various improvements. login shell, kill java process, .etc.