Removing app from queue

When removing app when retry count was exceeded, incorrect variable was referenced