[FIX] Fix the init/deinit of the cublas handle

This should fix the problems with the cublas handle properly.
Here check the output or cublas_init. I think you must modify cublas_init to return the error, instead of setting it. That is probably the cause of the random place were it get reported. If there is no bug, retourne NULL.