Make cursor delete itself from connection.
Send connection errors to the requesting cursor.
Use a smart request length instead of timing out on most queries.