-- IF -- you really have a 3/4" WHITE PVC Sch40 or Class 200 pipe & a 3/4" PCV Sch40 glue cap, then to ensure capping it off doesn't blow...
Use PVC cutters to make a clean cut at the end of the pipe (you might have to do some digging to expose enough pipe). Clean the pipe with a rag and water (i.e. wipe of excessive dirt). Then finish cleaning it with the purple primer AND use the purple primer on the inside of the cap. At this point, the only thing that should be on the pipe and in the cap is the primer. After the primer dries, apply a coat of pvc glue (the blue stuff you were using initially should be fine) to both the pipe and the inside of the cap. The push the pieces together making sure to twist at least 1/4 of a turn. HOLD THE PIECES IN PLACE for about 30 seconds. Let it stand unpressurized for 2 hours.
If after all that it blows, then you are doing something fundimentally wrong... something like using a threaded cap, the pipe or the cap isn't Sch40 PVC or Class 200, you're barely putting any glue, or something else off the wall that is just wrong. Because following these instructions will result in a joint between the pipe and cap that is stronger than the pipe and there is no way you are going to blow the cap off.
thats what i would do, if that doesnt work take pics so we can see.