Fix deactivation error and add API notice to plugins page. 

@jpasichnyk Pull request fixes bug.