Finish server listener and multithreading