Fixed application closing with stopped poll