When a boost fails you loose the credits. That is the way it works. The 3 seconds in the message is how long the message will be displayed and has nothing to do with the success or failure of the boost or when you can try again.