Fix the new_crashes generator for HBase so it doesn't close the connection too early.

Also, don't close the connection when requested for the persistent HBase
connection (and only close it when the context is closed).