sockets and handles in ghc