Added protocol for files too large
Implemented closing server