private void closeOutputStreams(OutputStream... outputStreams) {
        for(OutputStream outputStream : outputStreams) {
            try {
                outputStream.close();
            } catch (IOException e) {
                new Exception("Unable to close OutputStream").printStackTrace();
                e.printStackTrace();
            }
        }
    }