improve msg for better debug (related with #5632)

Add the context that tried to be applied, errno and strerror. 
This improvement shows the reason of OSError exception and the context that tried to be applied.