Prevent closing an already closed connection which would raise an untreated exception.
We don't care about methods that are not GET methods but we should not block other calls to give a chance of the parent application to run.