Fixing weitd nullpointers by using Weakreferences in Handlers