How do you handle increased anxiety when you have no occupation/job?

When I am without a job or occupation for an extended period of time my anxiety tends to get worse, it's like everything outside becomes scary and simple tasks overwhelm me. When I am working I just don't have these kind of issues. Is there something that helps you?