added close() to servers

so we can manually close/stop server