using success code with exec in pom