Fixed Close Server button link
Improved server, to handle malformed requests without giving tracebacks,
or abrupt server shutdown