core/thread: fixed bug (self closed thread); core/event: fixed bug (segfault on detach event kqueue/epoll); modules/file_input: loop