Add end_stream_callback property
Fix error in end_stream_callback handler

self should not be an argument