ServerStarter closes upon double clicking it

I had already completed adding MySQL and Essentialmode into my server and the ServerStarter.bat was working fine until when i double click it, it loads everything and it just closes. When i tried to open it up again, it immediately closes over and over.