fix server bug

fixes bug where a server could not be restarted due to the port/socket/whatever being occupied. Turns out the listener wasn't disposed prior to this commit.