Closes files and prints response
Closes files and prints response