createSession changed for all plugins to have block check outside.
createSession changed to throw errors. and catch happens outside.