Fix java exit bug; Add option to remember password or not