use the documented "end" method instead of release