close server if there are 0 open connections. closes #76