Before you leave the FM Rooms 1-5, and you have spawned mobs in those rooms, you are required to KILL them before you leave. If you are caught training, spawned then leave without killing the leftover mob, you will be jailed for 30 minutes.
There is a selection in the Spawner to kill all mobs, use that if you cant kill them.