Cover error handling in main for sources