Log errors in respective commands to have them available in GUI; also fixes #50