RemoteFileSink's pending messages should consider files

- cleanUp with fetchAll to describe unclosed files
- RemoteFileSink.getNumOfPendingMessages() is returning the number of files not uploaded yet when the number of pending messages in LocalFileSink is 0