only sever.close if its listening