Adds exception catching to image daemon