created method to quit driver and delete object