[Haskell] Network accept loop with graceful shutdown implementation