Updated target and used API version to 18
Made the app detect properly when disconnected from IRC