HARRIS COUNTY, Texas -

A man who spent hours holding police at bay was arrested Sunday morning.

Harris County Deputies said the man called a cab early Sunday morning, then tried to stab the driver.

The driver was able to run away without being hurt.

Investigators say the man then tried to attack his family in his home, near the Hot Wells Gun Range on Highway 290 in Cypress.

His family was also able to escape and call for help.

When deputies arrived at the man refused to come outside and fired several shots.

No one was hit.

At about 9 a.m. Sunday the man finally gave up and was taken into custody.