Added contains statement to weakref proxy list and implemented some exception handling for stale event listeners.
Added contains statement to weakref proxy list and implemented some exception handling for stale event listeners.

oktayacikalin/diamond-framework,theblacklion/diamond-framework