Fixed a bug where slave would cache defferred requests even after a layer close