[Fixes #81245270]
- adds closing of connection after any "send_file" method to ensure that connection closes (most important when concurrent image requests are made, new connections are usually made at this point due to send_file method in ActionPack gem)