Finer grained exception handling for element.release

Signed-off by: Joe Mills