adding 401 Unauthorize code

1) adding 401 Unauthentication Exception case in Every Middleware Schedule job's sub processes.