Fixed freeze inside the message loop in the sqs_input plugin