}.start();
response = new ServerShutdownResponse("Request to shutdown server received successfully and schedulled to execute in 5 seconds.", Response.Status.SUCCESS);
} else throw new IllegalStateException("Request type unknown.");
// writing the serialized response
serverProtocol.writeResponse(response);
} catch (Exception e) {
throw new RuntimeException(e);
} finally {
if (serverProtocol != null) {
serverProtocol.closeSocket();