browser.close


		#the current schedule is th best option
		if(compatibleSchedule.ID >= rank):
			print "The current schedule is the best compatible Schedule"

			if heartbeat:
				notify.notifyHeartBeat("The current schedule is the best compatible Schedule")
				notify.sendEmail(recipient)

			#end program
			browser.close()


except:
	#unable to finish program

	#log error
	_, _, tb = sys.exc_info()
	error = traceback.format_list(traceback.extract_tb(tb)[-1:])[-1]

	print error

	#notify user of issue
	notify.notifyTermination(str(error))
	notify.sendEmail(recipient)

	#close the browser
	browser.close()