Add error handling when streams fail to open.
Add error handling when streams fail to open.

palashahuja/mlpack,ajjl/mlpack,ajjl/mlpack,ranjan1990/mlpack,palashahuja/mlpack,theranger/mlpack,theranger/mlpack,darcyliu/mlpack,darcyliu/mlpack,theranger/mlpack,stereomatchingkiss/mlpack,palashahuja/mlpack,stereomatchingkiss/mlpack,stereomatchingkiss/mlpack,ranjan1990/mlpack,ajjl/mlpack,ranjan1990/mlpack,darcyliu/mlpack