Added close method to proxy server.

Ensured server exists before closing.
Updated tests to use new close function.
Added documentation to README.