That's a common problem at first. It takes some practice to learn to remain calm. Try to focus on something, like an object in your dream, and take a few seconds to get your thoughts together. Then if you have a task in mind, you can attempt that. Just try to get one thing accomplished in your first few dreams.