Use a LifeCycleController to quit.

Change-Id: I2d8bd7b8ab9e4f187e2a89ee43565cdad59502ce
Depends-On: Id6d237f386c6f35844136ceb64b7c46f0af76765
Reviewed-on: http://gerrit.dmdirc.com/2716
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager