bugfix: server.listener was closed twice