That's what a good solo does. It shouldn't be a true solo, but part of the music. Maybe the name "solo" is wrong. A good solo doesn't stand on its own, but it's a break in the music that brings you to the next piece.
Too many guitar players think the solo is their time to show off how quick their fingers are without being hampered by the rest of the song. It may be impressive guitar skills, but it's crappy music. That doesn't mean that all solos should die, just that they shouldn't be entirely solo.
Also, Jeff Beck's records are really interesting, good, entertaining, innovative solo guitar.