Call server_close on exit