use END{} and check error before starting autorun server