The bankruptcy announcement comes after cash struggles and a failed acquisition by Amazon.