Remove the keep_alive attribute.

Fixes #6304