Added error checking for snappy submission