Recording Timer
You can set a recording timer to automatically stop recording after the desired number of minutes.

To turn on the recording timer, select Use Recording Timer from the Mix menu.  Enter in a number of minutes to record for.  (If you only want to record 30 seconds, enter 0.5)

To turn off the recording timer, click Use Recording Timer from the Mix menu so that it is no longer checked.

See more on recording here.