Warnings when closing an SFTP session

The logs show a bunch of warning messages when an SFTP client closes a connection with the gateway normally. Since the connection was closed normally, this should not happen.