Fix exception on BufferedPaymentThread on shutdown