Removing listeners because of out of memory exception