fix connect when serve
stop when premake fails