improve plugin handling
user correct http code on plugin exit
add crlf after response
better error handling for openssl
fixing plugin response