Add possibility to destroy data on add_select_fds. Fix all memory leak, helped by valgrind.