ipsec: clean up startup commands and error handling