Fix double execption in exec and issue #48