libdeng2: Handle error when log output file cannot be opened

The C wrapper also needs to handle the exception.