[core] fixed: dispose poller and waker on core dispose

Makes sure that even if core is being iterated manualy (i.e. by
importer from remoting) it will terminate correctly.