leaveloader expection handling fixed