Remove new stp in case of error