That is probably his old shell that he shed. He's probably still alive. Most crabs eventually cause problems. Watch for trouble and try to catch him if he misbehaves.
Picture ain't too good,but it could be a pea crab or it's molt. Any crab should be watched closely. Even emerald crabs attack fish and inverts from time to time.