If no frame is recorded for the VideoCreator (empty video), the close of the stream throws an error (java.lang.RuntimeException: error Operation not permitted, failed to write trailer to...). We should catch it.