Making shutdown() static to avoid errors in PHP 5.4

Signed-off-by: Peter Legierski <peter@legierski.net>
Merge branch 'refs/heads/hotfix-static' into develop