I've been using a
code:
CLS
EXIT 0

at the end of my login batch files. This normally solved the problem of a non-closing batch file. Give it a try.
_________________________
There are two types of vessels, submarines and targets.