The UK Border Agency has made provision for those who have been prevented from leaving the UK when their leave is about to expire or has already expired.
Students should visit this page for more information.