Closing net listener when stopping server