Fix a rwlock error
Close disk file descriptors synchronously when HTTP clients disconnect