Displays error message if output file couldn't be opened

mjwm won't proceed if it can't open the given output file for writing.
It return with a non-zero exit code.

Fixes #27