It depends on how far you are into the REM cycle all ready, I'm assuming you did a DILD? When you had the 5 second one did the dream collapse on you are did you just lose lucidity? A lot of beginners will get excited after becoming lucid and that'll cause the dream to end on them. You really have to stay calm and focused.

Also, welcome to the forum