Make sure when you shutdown the embedded server that you close the
Server socket.